package com.ai.dmc.index.web.agent.utils;

public class BaiduAgentUtils
{
  public static String getImageSuffix(String path)
  {
    int index = path.lastIndexOf(".");
    if (index < 0) {
      return "";
    }
    try
    {
      String suffix = path.substring(index);
      if ((suffix != null) && (suffix.length() < 5))
        return suffix;
    }
    catch (Exception e) {
      e.printStackTrace();
    }
    return "";
  }
}
